import Http from '@/util/request'

export const apparatusApi = {
  getApparatusList: async (params?: object) => {
    return Http.request({
      url: '/admin/apparatus/apparatus/getApparatusList',
      method: 'get',
      params,
    })
  },

  apparatusAdd: async (data?: object) => {
    return Http.request({
      url: '/admin/apparatus/apparatus/apparatusAdd',
      method: 'post',
      data,
    })
  },

  apparatusUpdate: async (data?: object) => {
    return Http.request({
      url: '/admin/apparatus/apparatus/apparatusUpdate',
      method: 'post',
      data,
    })
  },

  apparatusDelete: async (data?: object) => {
    console.log(data)
    return Http.request({
      url: '/admin/apparatus/apparatus/apparatusDelete',
      method: 'post',
      data,
    })
  },
}
